﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frogism.Domain {
  public class ManagerService {
    public static Core.IBookManager GetBookManager() {
      return GetBookManager(false);
    }
    
    public static Core.IBookManager GetBookManager(bool old){
      if(old)
        return new BookManager();

      return new Frogism.Data._2.BookRepository();

    }
    public static Core.IAuthorManager GetAuthorManager() {
      
      //return new Frogism.Domain.AuthorManager();
      return new Frogism.Data._2.AuthorRepository();

    }
  }
}
